package com.cg.controller;

import com.cg.client.AppClient;
import com.cg.dto.Result;
import com.cg.entity.DictionaryType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName DictionaryTypeController
 * @Description TODO
 * @Author CG
 * @Date 2024/1/9 20:56
 **/
@RestController
@RequestMapping("/dictionaryType")
public class DictionaryTypeController {

    @Resource
    private AppClient appClient;

    /**
     * 查询全部数据字典类型
     */
    @GetMapping("/queryTypeCodeAll")
    public Result<List<DictionaryType>> queryTypeCodeAll(){
        return appClient.queryTypeCodeAll();
    }
}
